USE [ET_Lock]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[LoginLimit_tb](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ErrCount] [int] NOT NULL,
	[UnlockTime] [datetime] NOT NULL,
	[IP] [nvarchar](200) NULL,
	[CUserId] [int] NULL,
 CONSTRAINT [PK_LoginLimit_tb] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[LoginLimit_tb] ADD  CONSTRAINT [DF_LoginLimit_tb_ErrCount]  DEFAULT ((0)) FOR [ErrCount]
GO

ALTER TABLE [dbo].[LoginLimit_tb] ADD  CONSTRAINT [DF_LoginLimit_tb_UnlockTime]  DEFAULT (getdate()) FOR [UnlockTime]
GO


